package com.easygem.common.model.business;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author 何维佳
 * @version 1.0
 * @className Client
 * @Description TODO
 * @date 2025/1/15 11:23
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table(name = "`bg_client`")
public class Client {
    @Id
    @Column(name = "`clientId`")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long clientId;

    @Column(name = "`phone`")
    @ApiModelProperty("手机")
    private String phone;

    @Column(name = "`clientTypeId`")
    @ApiModelProperty("客户类型")
    private Integer clientTypeId;

    @Column(name = "`company`")
    @ApiModelProperty("所属公司")
    private String company;

    @Column(name = "`clientNo`")
    @ApiModelProperty("客户编号")
    private String clientNo;

    @Column(name = "`employeeId_aftermarket`")
    @ApiModelProperty("所属售后")
    private Integer employeeId_aftermarket;

    @Column(name = "`createTime`")
    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    @Column(name = "`clientName`")
    @ApiModelProperty("客户名称")
    private String clientName;

    @Column(name = "`linkman`")
    @ApiModelProperty("联系人")
    private String linkman;


}
